fn main() -> e_utils::AnyResult<()> {
    #[cfg(feature = "sync-system")]
    {
        use e_utils::chrono::FixedOffset;
        use ntp_client::sync_systemtime;

        let target = "0.pool.ntp.org:123";
        let res = ntp_client::Client::new()
            .target(target)?
            .format(Some("%Y/%m/%d %H:%M:%S"))
            .offset(FixedOffset::east_opt(8 * 3600))
            .request()?;
        let datetime = res.get_datetime_utc().ok_or("get datetime shanghai")?;
        sync_systemtime(datetime)?;
    }
    Ok(())
}
